package com.edu.system.domain;

import javax.validation.constraints.NotBlank;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.common.annotation.Excel;
import com.edu.common.core.domain.BaseEntity;

/**
 * 教师对象 t_teacher
 *
 * @author xxxx
 * @date 2023-12-17
 */
public class TTeacher extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 名字
     */
    @Excel(name = "名字")
    @NotBlank(message = "教师名字不能为空")
    private String name;

    /**
     * 职工号
     */
    @Excel(name = "职工号")
    @NotBlank(message = "职工号不能为空")
    private String employeeId;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String telephone;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String avatar;

    /**
     * 是否展示
     */
    @Excel(name = "是否展示")
    private String isShow;

    /**
     * 状态
     */
    @Excel(name = "状态", readConverterExp = "0=启用,1=禁用")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("employeeId", getEmployeeId())
                .append("telephone", getTelephone())
                .append("avatar", getAvatar())
                .append("isShow", getIsShow())
                .append("status", getStatus())
                .append("remark", getRemark())
                .toString();
    }
}
